package com.sanyang.lawyer.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: lawyer
 * @description: 日志表
 * @author: Mr.Wang
 * @create: 2019-10-11 08:14
 **/

@Data
@ToString
public class Log_Table {
    private int logId;     //主键

    private System_user userId;       //用户id（外键

    private Log_Stair typeId;        //日志类型（外键

    private Log_Stair logSecondId;      //二级日志类型id（外键

    private Case_law  caseId;        //案件id（外键

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;    //开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date entTime;      //结束时间

    private int duration;       //自报时长

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date udpatetime;    //跟新时间

    private String description; //工作描述

    private String uploading;   //上传文件

    private String state;       //公开状态



}
